package com.itheima.ydd.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.ydd.entity.Cate;
import com.itheima.ydd.mapper.CateMapper;
import com.itheima.ydd.service.CateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class CateServiceImpl extends ServiceImpl<CateMapper, Cate> implements CateService{

    @Autowired
    private CateMapper cateMapper;

    @Override
    public boolean deleteById(Long id) {
        cateMapper.deleteById(id);
        return true;

    }

    @Override
    public List<Cate> getList(){
        return cateMapper.getList();
    }
}




